package br.edu.fanor.esfinge.business.impl;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.EJB;

import br.edu.fanor.esfinge.business.InstituicaoSuperiorSession;
import br.edu.fanor.esfinge.dao.InstituicaoSuperiorDAO;
import br.edu.fanor.esfinge.entity.InstituicaoSuperior;



public class InstituicaoSuperiorSessionImpl implements InstituicaoSuperiorSession{
	
	
	
	@EJB
	private InstituicaoSuperiorDAO instituicaosuperiorDAO;

	
	@PostConstruct
	public void postConstruct() {
		System.out.println("Criou o EJB InstituicaoSuperiorDAO");
	}
	
	
	@PreDestroy
	public void preDestroy(){
		System.out.println("Destruiu o EJB InstituicaoSuperiorDAO");
	}

	@Override
	public void inserir(InstituicaoSuperior instituicaosuperior) {
		instituicaosuperiorDAO.inserir(instituicaosuperior);
	}
	

}
